import requests
#session里边写一些共有得东西
#每一个基于session得请求是独立的
#如果覆盖了共有的信息，那就会更新，如果共有的没有，那就添加

# session=requests.Session()
# session.headers={'common':'xjb','test':'test'}
#
# html1=session.get('https://httpbin.org/headers',headers={'test':"my headers"},verify=False)
# print(html1.text)
# print(html1.headers)
# print(html1.request.headers)

# url = 'https://httpbin.org/post'
# multiple_files = [
#     ('xxx', ('test.png', open('test.png', 'rb'), 'image/png'))]
# r = requests.post(url, files=multiple_files)
# print(r.text)

proxies = {
  'http': 'http://112.250.107.37:53281',
  'https': 'http://12.250.107.37:53281',
}

html=requests.get('https://github.com/',proxies=proxies)
print(html.text)